package com.hsgene.order.dto.details;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单详情中订单状态信息
 *
 * @author wxf
 * @date 2018/8/7 16:46
 **/
public class OrderDetailsStatusInfo implements Serializable {

    /**
     * 主订单id
     */
    private String mainOrderId;

    /**
     * 子订单id
     */
    private String itemOrderId;

    /**
     * 来源
     */
    private String from;

    /**
     * 商品id
     */
    private String mallGoodsId;

    /**
     * 下单时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date orderCreateTime;

    /**
     * 当前子订单状态
     */
    private String status;

    /**
     * 子订单状态描述
     */
    private String statusDesc;

    public String getMainOrderId() {
        return mainOrderId;
    }

    public void setMainOrderId(String mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    public String getItemOrderId() {
        return itemOrderId;
    }

    public void setItemOrderId(String itemOrderId) {
        this.itemOrderId = itemOrderId;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getMallGoodsId() {
        return mallGoodsId;
    }

    public void setMallGoodsId(String mallGoodsId) {
        this.mallGoodsId = mallGoodsId;
    }

    public Date getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    @Override
    public String toString() {
        return "OrderDetailsStatusInfo{" +
                "mainOrderId='" + mainOrderId + '\'' +
                ", itemOrderId='" + itemOrderId + '\'' +
                ", from='" + from + '\'' +
                ", mallGoodsId='" + mallGoodsId + '\'' +
                ", orderCreateTime=" + orderCreateTime +
                ", status='" + status + '\'' +
                ", statusDesc='" + statusDesc + '\'' +
                '}';
    }
}
